﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BDD.TicTacToe.Acceptance.Tests.Utilities;

namespace BDD.TicTacToe.Acceptance.Tests.PageObjects
{
    public static class WelcomePage
    {
        public static object Title
        {
            get { return WebBrowser.Current.Title; }
        }

        public static string PlayerXName
        {
            get { return WebBrowser.Current.TextField("PlayerXName").Value; }

            set { WebBrowser.Current.TextField("PlayerXName").Value = value; }
        }

        public static string PlayerOName
        {
            get { return WebBrowser.Current.TextField("PlayerOName").Value; }

            set { WebBrowser.Current.TextField("PlayerOName").Value = value; }
        }

        public static void ClickStartNewGame()
        {
            WebBrowser.Current.Button("bStartNewGame").Click();
        }
    }
}
